﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SocketHttpLib
{
    internal struct WebParseError
    {
        public WebParseErrorSection Section;

        public WebParseErrorCode Code;
    }
    internal enum WebParseErrorSection
    {
        Generic,
        ResponseHeader,
        ResponseStatusLine,
        ResponseBody
    }
    internal enum WebParseErrorCode
    {
        Generic,
        InvalidHeaderName,
        InvalidContentLength,
        IncompleteHeaderLine,
        CrLfError,
        InvalidChunkFormat,
        UnexpectedServerResponse
    }
}
